﻿using Abp.Domain.Entities.Auditing;
using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;

namespace AppFramework.DinosaursParkMes.Production
{
    /// <summary>
    /// 关联BOM物料子表
    /// </summary>
    [Table("tb_MaterialRequisitionBOM")]
    public class MaterialRequisitionBOM : AuditedEntity<int>, ISoftDelete
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int Serialnumber { get; set; }

        /// <summary>
        /// 领料单编号
        /// </summary>
        public string Materialrequisitioncode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string Materialname { get; set; }

        /// <summary>
        /// 物料编号
        /// </summary>
        public string Materialcode { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specificationsandmodels { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 当前库存
        /// </summary>
        public int Stock { get; set; }

        /// <summary>
        /// 领用数量
        /// </summary>
        public int Number { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string Batchnumber { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        public string Warehousename { get; set; }

        /// <summary>
        /// 库位名称
        /// </summary>
        public string Storagelocationname { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 库区名称
        /// </summary>
        public string Reservoirareaname { get; set; }
        public bool IsDeleted { get; set; } = false; 
    }
}
